/*
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. 
 */
package com.icinfo.cloud.provider.punish.common.user.controller;

import com.icinfo.cloud.provider.punish.common.user.service.IMemberUserCommonService;
import com.icinfo.framework.common.web.Result;
import com.icinfo.framework.core.web.BaseController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 【V1.3.2】描述: 用户签名信息前端控制器
 *
 * @author framework generator
 * @date 2022年07月21日
 */
@Slf4j
@RestController
@RequestMapping("/punish/user")
public class MemberUserCommonController extends BaseController {

    @Resource
    private IMemberUserCommonService memberUserCommonService;


    /**
     * 获取当前用户数据权限，1-本单位 2-本区域
     * @author liyafeng
     * @date 2022/9/5
      * @param
     * @return {@link Result}
     */
    @RequestMapping(value = "/getUserDataPermission")
    public Result getUserDataPermission() {
        String dataPermission = "";
        try {
            dataPermission = memberUserCommonService.getUserDataPermission();
        } catch (Exception e) {
            log.info("失败:" + e.toString());
        }
        return Result.success("success", dataPermission);
    }


}